Package com.cisco.pt.ipc.sim.impl
Class NtpServerProcessImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.NtpServerProcessImpl
- All Implemented Interfaces:
IPCObject,NtpServerProcess,Process
Information provided by the PKI file:
\class NtpServerProcess
\brief NtpServerProcess handles and manipulates the NTP server process.
\example network().getDevice("Server0").getProcess("NtpServer")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionNtpServerProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionlonggetKeyId()Information provided by the PKI file:booleanInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:booleanInformation provided by the PKI file:voidsetEnabled(boolean enable) Information provided by the PKI file:voidsetKeyID(long key) Information provided by the PKI file:voidsetNtpServerAuthentication(boolean yes) Information provided by the PKI file:voidsetRefClockTime(String time) Information provided by the PKI file:voidsetServerMd5Str(String md5) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
NtpServerProcessImpl
public NtpServerProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enable) Information provided by the PKI file:
\brief Enables or disables the NTP server. \param enable, true to enable the NTP server, false to disable it.- Specified by:
setEnabledin interfaceNtpServerProcess- Parameters:
enable- Takes in a parameter of enable
-
isEnabled
public boolean isEnabled()Information provided by the PKI file:
\brief Returns true if the NTP server is enabled, otherwise false. \return bool, true if the NTP server is enabled, otherwise false.- Specified by:
isEnabledin interfaceNtpServerProcess- Returns:
- boolean Returns a boolean
-
setKeyID
public void setKeyID(long key) Information provided by the PKI file:
\brief Sets the NTP authentication key to the specified value. \param key, the NTP authentication key value.- Specified by:
setKeyIDin interfaceNtpServerProcess- Parameters:
key- Takes in a parameter of key
-
getKeyId
public long getKeyId()Information provided by the PKI file:
\brief Returns the NTP authentication key. \return long, the value of the NTP authentication key.- Specified by:
getKeyIdin interfaceNtpServerProcess- Returns:
- long Returns a long
-
getServerMd5Str
Information provided by the PKI file:
\brief Returns the NTP authentication password. \return string, the NTP authentication password.- Specified by:
getServerMd5Strin interfaceNtpServerProcess- Returns:
- String Returns a String
-
setServerMd5Str
Information provided by the PKI file:
\brief Sets the NTP authentication password. \param md5, the NTP authentication password.- Specified by:
setServerMd5Strin interfaceNtpServerProcess- Parameters:
md5- Takes in a parameter of md5
-
getNtpServerAuthentication
public boolean getNtpServerAuthentication()Information provided by the PKI file:
\brief Get if the server is set to authenticate. \return bool, true if it is set to authenticate, false if not.- Specified by:
getNtpServerAuthenticationin interfaceNtpServerProcess- Returns:
- boolean Returns a boolean
-
setNtpServerAuthentication
public void setNtpServerAuthentication(boolean yes) Information provided by the PKI file:
\brief Set if the server is supposed to authenticate. \param yes, true if it should be set to authenticate, false if not.- Specified by:
setNtpServerAuthenticationin interfaceNtpServerProcess- Parameters:
yes- Takes in a parameter of yes
-
setRefClockTime
Information provided by the PKI file:
\brief Set the ref clock time. \param time, time to set the clock to. Example time: "Tue May 24 2016 10:21:27.929 UTC".- Specified by:
setRefClockTimein interfaceNtpServerProcess- Parameters:
time- Takes in a parameter of time
-
getRefClockTime
Information provided by the PKI file:
\brief Gets the ref clock time. \return string, ref clock time. Example time: "Tue May 24 2016 10:21:27.929 UTC".- Specified by:
getRefClockTimein interfaceNtpServerProcess- Returns:
- String Returns a String
-